<!DOCTYPE html>
<script src="../resources/text-based-repaint.js"></script>
<script>
function repaintTest() {
  document.getElementById('target').style.width = '300px';
  document.getElementById('target').style.height = '300px';
}
window.onload = runRepaintAndPixelTest;
</script>
<style>
body {
  margin: 0;
}
#container {
  position: absolute;
  top: 100px;
  left: 100px;
  width: 200px;
  height: 200px;
  overflow: hidden;
}
#target {
  width: 100px;
  height: 100px;
  border: green 10px solid;
  background-color: blue;
}
</style>
Tests invalidation when a box with border is resized within a clipping container.
Passes if the result paint rects don't exceed the container.
<div id="container">
  <div id="target"></div>
</div>
